<?php
ob_start();
require("config.php");

/*
 * Created on 16/02/2012
 */
class ConsAjax{

	private $strNomeClass;
	private $strMetodo;
	private $objCrypt;

	public function factoryClass(){
		$get = $_GET;
		$get = array_merge($get, unserialize(base64_decode($_GET["ajx"])));
		
		Debuga::debuga($get);
		
		$caminhoClasse = $get["ajx"];
		$strClasse = $get["classe"];
		$strMetodo = $get["metodo"];

		if(file_exists($caminhoClasse.$strClasse.".class.php")){
			include($caminhoClasse.$strClasse.".class.php");
			$objClasse = new $strClasse();
			$objClasse->$strMetodo($get);
		}
	}
}

$objAjax = new ConsAjax();
$objAjax->factoryClass();
?>